<?php
/**
 * +----------------------------------------------------------------------
 * | summer framework
 * +----------------------------------------------------------------------
 * | Copyright (c) 2020 https://github.com/suframe/think-admin All rights reserved.
 * +----------------------------------------------------------------------
 * | Author: summer <806115620@qq.com>  2020/3/30 13:55
 * +----------------------------------------------------------------------
 */

namespace app\mall\enum;


class FreightEnum extends Base
{
    public const FREE = 'free';
    public const FREIGHT = 'freight';
    public const SELF = 'self';

    public static function toZhArray(): array
    {
        return [
            self::FREE => '包邮',
            self::FREIGHT => '快递',
            self::SELF => '自提',
        ];
    }

    public static function getKeyFree(): string
    {
        return static::FREE;
    }

    public static function getKeyFreight(): string
    {
        return static::FREIGHT;
    }

    public static function getKeySelf(): string
    {
        return static::SELF;
    }

}